|
![](/i/fill.gif) |
> "Bill Pragnell" <bil### [at] hotmail com> wrote in message
> > Just an extra thought - couldn't you globally #declare your array size
> > when you
> > populate it, then use this value in the second macro?
"[GDS|Entropy]" <gds### [at] hotmail com> wrote:
> I had a version which did this, but I could only summon it once, as any
> subsequent incarnations redefined the contents upon each call.
I'm not sure I understand the problem... based on the first paragraph of your
original post, if you keep track of the number of array elements in the first
macro and #declare an array_size variable (not #local), then this number will
be available for all subsequent code, just like the array, and you will know how
many elements to loop through. If you call the same macro again, it will simply
redefine this counter to reflect the new array contents... is this not what you
want to do?
I've got the vague feeling that I'm missing something, as this seems too easy a
solution compared with other replies! :-)
Bill
Post a reply to this message
|
![](/i/fill.gif) |